package com.openbravo.pos.payment;

import com.openbravo.format.Formats;

public class PaymentInfoCash extends PaymentInfo
{
  private double m_dPaid;
  private double m_dTotal;

  public PaymentInfoCash(double paramDouble1, double paramDouble2)
  {
    this.m_dTotal = paramDouble1;
    this.m_dPaid = paramDouble2;
  }

  public PaymentInfo copyPayment()
  {
    return new PaymentInfoCash(this.m_dTotal, this.m_dPaid);
  }

  public String getName()
  {
    return "cash";
  }

  public double getTotal()
  {
    return this.m_dTotal;
  }

  public double getPaid()
  {
    return this.m_dPaid;
  }

  public String getTransactionID()
  {
    return "no ID";
  }

  public String printPaid()
  {
    return Formats.CURRENCY.formatValue(new Double(this.m_dPaid));
  }

  public String printChange()
  {
    return Formats.CURRENCY.formatValue(new Double(this.m_dPaid - this.m_dTotal));
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.payment.PaymentInfoCash
 * JD-Core Version:    0.6.0
 */